'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  router.get('/', controller.home.index);

  router.get('/user/:id', controller.home.user )


  router.post('/add' , controller.home.add)

  router.get('/getuser', controller.home.getuser )

  router.post('/addUser' , controller.home.addUser )

  router.post('/editUser', controller.home.editUser)

  router.post('/deleteUser' , controller.home.deleteUser)


};
